package com.example.orderservice.controller;

import com.example.orderservice.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA 2023.
 * Description:
 * User: 故我
 * Date: 2024-02-14
 * Time: 15:35
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private LogService logService;

    @RequestMapping("/getcount")
    public String getCount() {
        return " --- Order-Service --- " + logService.getLog();
    }
}
